Skip to content

[codex] Build the OpenMacro architecture foundation#1

Merged
vibhor1102 merged 8 commits into
mainfrom
feature/openmacro-foundation
Jun 25, 2026
Merged

[codex] Build the OpenMacro architecture foundation#1
vibhor1102 merged 8 commits into
mainfrom
feature/openmacro-foundation

Conversation

@vibhor1102

@vibhor1102 vibhor1102 commented Jun 25, 2026

Copy link
Copy Markdown
Member

What changed

  • Introduces the format-neutral OpenMacro document model and validator.
  • Adds a Trigger / Condition / Action capability registry with proof capabilities.
  • Adds strict, source-preserving YAML 1.2 reading and deterministic writing.
  • Adds parsing, validation, explanation, permission impact, behavioral comparison, and immutable runtime-plan compilation.
  • Adds path-safe OpenMacro Workspace storage and app-private immutable approval revisions with integrity checks and rollback.
  • Adds an approved-plan runtime lifecycle with event-driven power subscriptions, cancellation, deterministic condition/action execution, and bounded diagnostics.
  • Adds Android proof adapters for power-connected broadcasts, device-lock checks, notification permission discovery, and local notifications.
  • Replaces the splash shell with the first shared Visual / Code editor surface.
  • Keeps the visual overview limited to Triggers, Conditions, and Actions, while code edits the same OpenMacro source.
  • Preserves the last valid visual explanation while invalid code is corrected.
  • Debounces parsing onto a cancellable background coroutine so source typing does not block the UI thread.
  • Documents SnakeYAML Engine and kotlinx.coroutines third-party usage.

Why

ZeroBit needs a MacroDroid-simple UI and an AI-editable code representation without creating two drifting automation systems. GitHub may hold user-owned source and history, but the phone must run only an exact locally approved snapshot.

User and developer impact

The app now demonstrates the central product loop: inspect a clean three-lane macro, switch to its exact code at any time, edit locally, see validation errors, and identify whether behavior requires approval. The architecture underneath already separates workspace source, approval state, runtime ownership, and diagnostics.

Validation

  • git diff --check
  • Unit tests for format validation, capabilities, runtime plans, source preservation, rejected YAML, proposal behavior, workspace safety, approval integrity and rollback, runtime lifecycle/cancellation/diagnostics, and editor state equivalence
  • Hosted Verify Build: compile, unit tests, checks, and debug assembly pass
  • Hosted stable-signed debug APK run 28159882173 passes package and certificate verification
  • Debug APK package: com.vibhor1102.zerobit.debug
  • Device UI smoke test pending wireless ADB reconnection

@vibhor1102 vibhor1102 merged commit b34ce44 into main Jun 25, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant